<html>
<head><meta charset="utf-8"><title>Analyzer being super-slow on nightly · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Analyzer.20being.20super-slow.20on.20nightly.html">Analyzer being super-slow on nightly</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="192115535"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Analyzer%20being%20super-slow%20on%20nightly/near/192115535" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> trevyn <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Analyzer.20being.20super-slow.20on.20nightly.html#192115535">(Mar 28 2020 at 09:58)</a>:</h4>
<p><a href="https://gist.github.com/trevyn/ef7bf53523215f43fdcf42d4e4341f87" title="https://gist.github.com/trevyn/ef7bf53523215f43fdcf42d4e4341f87">https://gist.github.com/trevyn/ef7bf53523215f43fdcf42d4e4341f87</a></p>
<p>And then "Extension host terminated unexpectedly."</p>



<a name="192116467"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Analyzer%20being%20super-slow%20on%20nightly/near/192116467" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Analyzer.20being.20super-slow.20on.20nightly.html#192116467">(Mar 28 2020 at 10:24)</a>:</h4>
<p><span class="user-mention" data-user-id="278163">@Eden</span> <br>
Any steps to reproduce?</p>



<a name="192122809"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Analyzer%20being%20super-slow%20on%20nightly/near/192122809" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> trevyn <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Analyzer.20being.20super-slow.20on.20nightly.html#192122809">(Mar 28 2020 at 13:20)</a>:</h4>
<p>sure, repro &amp; instructions here: <a href="https://storage.googleapis.com/foom/repro.zip" title="https://storage.googleapis.com/foom/repro.zip">https://storage.googleapis.com/foom/repro.zip</a></p>



<a name="192126582"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Analyzer%20being%20super-slow%20on%20nightly/near/192126582" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Analyzer.20being.20super-slow.20on.20nightly.html#192126582">(Mar 28 2020 at 14:49)</a>:</h4>
<p>Hmm, yeah I see 100% workload on the single core ;( <a href="/user_uploads/4715/6l7E7vHNvLYmT0ew0UHPrd04/image.png" title="image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/6l7E7vHNvLYmT0ew0UHPrd04/image.png" title="image.png"><img src="/user_uploads/4715/6l7E7vHNvLYmT0ew0UHPrd04/image.png"></a></div>



<a name="192127028"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Analyzer%20being%20super-slow%20on%20nightly/near/192127028" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Analyzer.20being.20super-slow.20on.20nightly.html#192127028">(Mar 28 2020 at 15:02)</a>:</h4>
<p>This is what takes som much time:</p>
<div class="codehilite"><pre><span></span>48954ms - handle_code_action
    48824ms - diagnostics
        23319ms - SourceBinder::to_module_def
            23319ms - crate_def_map:wait
        25504ms - Module::diagnostics
            24458ms - Function::diagnostics
                24458ms - infer:wait @ dostuff
              385ms - Function::diagnostics
                  385ms - infer:wait @ fetchputiolist
                       13ms - parse_query
                      371ms - ???
</pre></div>



<a name="192156521"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Analyzer%20being%20super-slow%20on%20nightly/near/192156521" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Analyzer.20being.20super-slow.20on.20nightly.html#192156521">(Mar 29 2020 at 04:50)</a>:</h4>
<p>I also see a 100% peak, but it will be become normal after that peak (I am in Windows). <br>
My non-educated guess,  it related to that <code>run</code> function is a local function, when we changed that, somehow all infer information were discarded.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>